class NewsEntity {
  int id;
  int memberId;
  String name;
  int categoryId;
  String describe;
  String content;
  int coverId;
  int fileId;
  String imgIds;
  int createTime;
  int updateTime;
  int status;
  int ts;
  String img;
  String url;

  NewsEntity(
      {this.id,
        this.memberId,
        this.name,
        this.categoryId,
        this.describe,
        this.content,
        this.coverId,
        this.fileId,
        this.imgIds,
        this.createTime,
        this.updateTime,
        this.status,
        this.ts,
        this.img,
        this.url});

  NewsEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    memberId = json['member_id'];
    name = json['name'];
    categoryId = json['category_id'];
    describe = json['describe'];
    content = json['content'];
    coverId = json['cover_id'];
    fileId = json['file_id'];
    imgIds = json['img_ids'];
    createTime = json['create_time'];
    updateTime = json['update_time'];
    status = json['status'];
    ts = json['ts'];
    img = json['img'];
    url = json['url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['member_id'] = this.memberId;
    data['name'] = this.name;
    data['category_id'] = this.categoryId;
    data['describe'] = this.describe;
    data['content'] = this.content;
    data['cover_id'] = this.coverId;
    data['file_id'] = this.fileId;
    data['img_ids'] = this.imgIds;
    data['create_time'] = this.createTime;
    data['update_time'] = this.updateTime;
    data['status'] = this.status;
    data['ts'] = this.ts;
    data['img'] = this.img;
    data['url'] = this.url;
    return data;
  }
}
